package cn.tedu._03vehicle.mapper;

import cn.tedu._03vehicle.pojo.dto.VehicleAddParam;
import cn.tedu._03vehicle.pojo.dto.VehicleListQuery;
import cn.tedu._03vehicle.pojo.entity.Vehicle;
import cn.tedu._03vehicle.pojo.vo.VehicleListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VehicleMapper {
    void insertVehicle(Vehicle vehicle);

    List<VehicleListVO> selectVehicleList(@Param("query") VehicleListQuery vehicleListQuery,
                                          @Param("userId") Long userId);

    int deleteVehicle(Long id, Long userId);
}
